/*
 * WantToBuyDetailAdapter.java
 * business
 *
 * Created by chentao on 2017/5/12.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.adapter;

import android.content.Context;

import com.yidiandao.business.ui.widget.listview.CommonAdapter;
import com.yidiandao.business.ui.widget.listview.DisplayItemManager;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.WantToBuyDetailGoodsListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.WantToBuyDetailOfferListItem;

/**
 * 发现页-求购详情-Adapter
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017/5/12 0012 15:29
 */
public class WantToBuyDetailAdapter extends CommonAdapter<DisplayListItem> {

    public WantToBuyDetailAdapter(Context context) {
        super(context);
    }

    @Override
    protected void registerDisplayListItemMap() {
        DisplayItemManager.register(getAdapterTag(), WantToBuyDetailOfferListItem.class);
        DisplayItemManager.register(getAdapterTag(), WantToBuyDetailGoodsListItem.class);
    }

    @Override
    protected String getAdapterTag() {
        return WantToBuyDetailAdapter.class.getSimpleName();
    }
}
